#!/usr/bin/env python2
#-*-coding=utf-8-*-

def exchange(num):
    print (num - 32) * (5.0 / 9)

if __name__ == '__main__':
    num = raw_input('输入华氏温度：')
    print exchange(float(num))
